home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / macintosh / alt-sources-mac next >
Encoding:
Text File  |  1995-07-25  |  15.4 KB  |  349 lines

  1. Subject: alt.sources.mac FAQ
  2. Newsgroups: alt.sources.mac,alt.answers,news.answers
  3. From: f8dy@netaxs.com (Mark Pilgrim)
  4. Date: 14 Nov 1994 05:05:19 GMT
  5.  
  6.  
  7. Archive-Name: macintosh/alt-sources-mac
  8. Submitted-by: f8dy@netaxs.com (Mark Pilgrim)
  9. Last-modified: 22-apr-94
  10. Version: 7
  11.  
  12. This compilation is intended to answer some of the most frequent questions
  13. about alt.sources.mac.  It is posted every week (usually Thursday) to
  14. alt.sources.mac and every other week (usually Thursday) to alt.answers and
  15. news.answers.  Please read it thoroughly before posting _anything_ to
  16. alt.sources.mac.  If you've read it and still aren't clear on why/what/how
  17. to post, e-mail the FAQ maintainer (f8dy@netaxs.com) or the group's creator
  18. (dnebing@andy.bgsu.edu) instead of posting a "What do I do" post.
  19.  
  20. Many FAQs, including this one, are available on the archive site rtfm.mit.edu
  21. in the directory pub/usenet/news.answers. The name under which a FAQ is
  22. archived appears in the "Archive-Name:" line at the top of the article.  This
  23. FAQ is archived as "macintosh/alt-sources-mac".
  24.  
  25. To find a particular topic by number, search for the number surrounded by
  26. rounded parentheses; i.e. to find information about acceptable content of
  27. posts, search for "(2.3)".  To find references to a topic, search for the
  28. number surrounded by less-than and greater-than signs; i.e. to find references
  29. to acceptable content of posts, search for "<2.3>".
  30.  
  31. Table of contents:
  32. -----------------
  33. 1. Why (and why not) to post to alt.sources.mac
  34.    1.1. Reasons to post here / general introduction
  35.    1.2. Reasons to post elsewhere
  36.    1.3. Reasons alt.sources.mac is called alt.sources.mac and not
  37.         anything else
  38. 2. What (and what not) to post to alt.sources.mac
  39.    2.1. Acceptable platforms/systems/environments
  40.    2.2. Unacceptable platforms/systems/environments
  41.    2.3. Acceptable content of posts
  42.    2.4. Unacceptable content of posts
  43. 3. How (and how not) to post to alt.sources.mac
  44.    3.1. General posting formatting guidelines
  45.    3.2. Small posts, snippets, cross-posts from other newsgroups
  46.    3.3. Larger posts
  47. 4. FTP sites
  48.    4.1. FTP sites which carry alt.sources.mac archives
  49.    4.1.1. FTP sites which will carry alt.sources.mac archives real soon now
  50.    4.2. FTP sites which carry other Macintosh source code
  51. 5. Things not included in this classification
  52.    5.1. Copyrights of posts
  53.    5.2. FAQ credits
  54.    5.3. ObSource
  55.  
  56. (1.1) Reasons to post here / general introduction
  57.  
  58. The alt.sources.mac newsgroup is intended to be a repository for Macintosh
  59. source code of all sorts that people wish to distribute and share with others.
  60. There are no restrictions on the type of source code you can post here --
  61. any mac, any language, any system version, any purpose. (see <2.1> and <2.3>
  62. below for details).
  63.  
  64. A common reason to post to alt.sources.mac is when you are posting a useful
  65. bit of source code to some other newsgroup, and you think that it might prove
  66. useful to other people in the future, in which case you can cross-post it
  67. here.
  68.  
  69. Alt.sources.mac is unmoderated, so your source code will be distributed
  70. throughout the USENET (or, at least, the portion of the USENET that receives
  71. alt.sources.mac -- see <1.2> below) immediately, without having to wait for a
  72. moderator's approval, like you have to do for some of the other newsgroups.
  73.  
  74. Furthermore, alt.sources.mac is archived at several anonymous ftp sites (see
  75. <4.1> below), so people will be able to get your software from the archive
  76. after you've posted it, rather than having to ask you to mail it to them.
  77.  
  78. Finally, you might have a snippet of mac source code that is really too
  79. small to submit as a package to one of the other major source newsgroups (see
  80. <3.2> below).
  81.  
  82. (1.2) Reasons not to post here
  83.  
  84. Alt.sources.mac IS NOT for requests for source code; the alt.sources.wanted
  85. newsgroup is for that.  Alt.sources.mac IS NOT for comments and discussion
  86. about source code, even source code posted in alt.sources.mac; the
  87. alt.sources.d newsgroup is for that.  Only source code should be posted to
  88. alt.sources.mac.
  89.  
  90. Alt.sources.mac isn't as widely propagated as the source newsgroups in the
  91. "comp" hierarchy, since more sites tend to get "comp" than "alt".  Therefore,
  92. if you want your source code to have as wide a distribution as possible, you
  93. might want to use the comp.sources.mac newsgroup instead of, or in addition
  94. to, alt.sources.mac.
  95.  
  96.  
  97. (1.3) Reasons alt.sources.mac is called alt.sources.mac and not anything else
  98.  
  99. A bunch of clever linguists have asked on alt.sources.mac why the group is
  100. not called alt.source.code.mac, alt.source-code.mac, or alt.sourcecode.mac.
  101. Some people feel that "sources" is an ambiguous term which implies that
  102. people can freely post questions like "Where can I find X?"  In fact, they
  103. are right, but their linguistic arguments are largely irrelevant.
  104.  
  105. Alt.sourcecode.mac does not fit into the Usenet naming hierarchy.  Like it
  106. or not, there is an established naming scheme, and source groups like
  107. alt.sources, alt.sources.amiga, alt.sources.d, alt.sources.index,
  108. alt.sources.patches, and alt.sources.wanted were around long before
  109. alt.sources.mac came into existence.  There is no alt.sourcecode.* hierarchy.
  110. This name policy is enforced by a group of influential news administrators
  111. who manage the large sites (like uu.net) that directly or indirectly provide
  112. newsfeeds to most of the world.  This naming scheme has been around for a
  113. long time, is very widely accepted, and was an important consideration when
  114. these people agreed to create alt.sources.mac.
  115.  
  116. In short, there is nothing we can do about the name "alt.sources.mac".  It
  117. may be confusing to people who are unfamiliar with the group's purpose, but
  118. that's what FAQs are for.  If you're really adamant about trying to change
  119. the name, please discuss it in alt.config, NOT in alt.sources.mac.
  120.  
  121.  
  122. (2.1) Acceptable platforms/systems/environments
  123.  
  124. Source code can be for the entire Macintosh line (including the Centris and
  125. Quadra lines), Newton, and the new PowerMac line of Macintosh computers.
  126.  
  127. Source code can be for any Macintosh operating system (6, 7, 7Pro, etc.), as
  128. well as Bento, A/UX (as long as the source is A/UX specific and does not apply
  129. to UN*X in general), etc.
  130.             
  131.  
  132. (2.2) Unacceptable platforms/systems/environments
  133.  
  134. Anything not mentioned in <2.1> above.  No UN*X, VAX, IBM, Apple //, TRS-80,
  135. Commodore, Amiga, or HP programs allowed.  Really.  All these other
  136. platforms have their own newsgroups or list-servers.  If it's not for the
  137. Mac, Newton, or PowerMac, it doesn't belong in alt.sources.mac.
  138.  
  139.  
  140. (2.3) Acceptable content of posts
  141.  
  142. Alt.sources.mac is EXCLUSIVELY for posting source code.  The source code
  143. may be in any form, textual or otherwise (i.e. Prograph files).  Also
  144. appropriate sources would include:
  145.  
  146. Resources:  Resources used in Macintosh programs.  These can include
  147.             CDEF's, MDEF's, as well as any other resource.
  148.  
  149. Scripts:    Scripts for either AppleScript, QuicKeys, Userland
  150.             Frontier, as well as any other scripting system.
  151.  
  152. Projects:   This includes project files for the Think compilers, as
  153.             well as Makefiles, AppMaker or Marksman project files, etc.
  154.  
  155. Source code can be for a full software product, library, patches, glue, or
  156. even code snippets.  See <3.3> below for how to post large archives.
  157.  
  158. Note on project files: in some programming environments (e.g. THINK C), the
  159. newest version of a project file is not backwardly-compatible.  For instance,
  160. THINK C 6 project files can not be read by THINK C 5.  Along with the project
  161. file, you should include a text file in the archive explaining how to set up
  162. the project from scratch.  
  163.  
  164.  
  165. (2.4) Unacceptable content of posts
  166.  
  167. Do not post copyrighted source code that is not yours unless you have
  168. permission from the original author.  This includes posts you see on
  169. other newsgroups; always consult the original author before cross-posting.
  170.  
  171. Do not post something that can only be decompressed with a commercial
  172. decompression program.  If you insist on compressing your source archive
  173. with a commercial compression program, make sure that either (a) it can be
  174. decompressed with a free/shareware program, or (b) it is self-extracting.
  175.  
  176. Do not post source code to viruses or intentionally malicious software.
  177.  
  178. Do not post anything that doesn't include some sort of Mac source code (see
  179. <1.3>, <2.1> above).
  180.  
  181.  
  182. (3.1) General format for all posts
  183.  
  184. Choose a good subject line for your posting that accurately describes what
  185. it contains.  The alt.sources.mac archive site generates its indices of the
  186. newsgroup from the subject lines of the postings in it, so try to make sure
  187. that there are relevant keywords in your subject that people can search for
  188. when looking for your source code later.  For source code archives spread
  189. over several posts (see <3.3> below), the subject lines should include not
  190. only the archive name, type, and platform, but also the part number:
  191.         Ghost 1.0 (word game, THINK C, part 0 of 10)
  192.         Ghost 1.0 (part 1 of 10)
  193.         ...
  194.         Ghost 1.0 (part 10 of 10)
  195.  
  196. Put a Followup-To: header line in your posting which directs followups
  197. somewhere other than alt.sources.mac.  This is especially important if you
  198. cross-post your alt.sources.mac posting from some other newsgroup, because
  199. people will often respond to the posting in that newsgroup without realizing
  200. it was cross-posted to alt.sources.mac.
  201.  
  202. At the top of your posting, separated from the main header of the posting
  203. by a blank line, include "Archive-name:" and "Submitted-by:" lines:
  204.         Archive-name: ghost-10.hqx
  205.         Submitted-by: f8dy@netaxs.com
  206.  
  207. The "name" on the first line should be a short one-word string that can serve
  208. as a "tag" for the package.  If your post is a complete program with a unique
  209. name, you can just use the name of the program as the archive name.  If you
  210. are posting a patch to a previously posted bit of source code, you would do
  211. something like "name/patchN", where N is the number of the patch.  If you post
  212. source code in multiple parts, do "name/part1", "name/part2", etc.  The second
  213. line should contain a return mail address for you.
  214.  
  215. This informational header (note that it is an auxiliary header, in the body of
  216. the posting, NOT part of the main message header) is used by some automatic
  217. archiving software to maintain alt.sources.mac archives automatically.  There
  218. are other useful fields you may want to put in the auxiliary header; if you
  219. are curious, see the documentation for the "rkive" program in the
  220. comp.sources.misc archives to find out what they are.
  221.  
  222. Other than the informational header, each post should include the following
  223. additional information about the content of the post: the type of code, a
  224. brief description of the code, the language of the code, and (if necessary)
  225. the specific programming environment the code was written in (e.g. THINK C
  226. vs. MPW C, QuickBASIC vs. Visual BASIC).  Answer all these questions early
  227. in the post; people should not have to search through the entire package
  228. just to figure out what it is.
  229.  
  230. For large posts (more than a few pages), this information should constitute
  231. the entire first post (part 0).  See <3.3> below for details.
  232.  
  233.  
  234. (3.2) Small posts, snippets, cross-posts from other newsgroups
  235.  
  236. Any small amount of source code (less than a few pages) can be posted as
  237. straight text.
  238.  
  239. If you post a single function to comp.sys.mac.programmer and feel it would
  240. serve the general community to have it on alt.sources.mac (and therefore
  241. archived on ftp sites around the world as well), cross-post it with a
  242. descriptive subject line.  Please remember to include a "Followup-To:" line
  243. to the original newsgroup or your own e-mail address.
  244.  
  245. If the source code, however small, relies on resources in a resource file,
  246. or if it is in two or more separate files, use the format for larger posts
  247. (see <3.3> below).
  248.  
  249.  
  250. (3.3) Large posts
  251.  
  252. Large source archives (for instance, code and resources for an entire
  253. program) are problematic, because some users must download an entire news
  254. article to read it.  Also, some newsreaders will cut off very large posts
  255. (over 1000 lines).  Therefore, put all relevant information about the
  256. source code in the first post, labeled "part 0 of n", where n is the number
  257. of posts the source code is split into.
  258.  
  259. After the informational post, the source code itself should be compressed
  260. and BinHexed.  (Compact Pro and Stuffit Lite are the favored compression
  261. programs, and the compressed archive should then be converted to BinHex 4.0
  262. format with any program that does that sort of thing.  Compact Pro and
  263. BinHex both do this quite well.)
  264.  
  265. The BinHex file should be split into sections of no more than 800 lines each.
  266. In unix, this can be accomplished with the command
  267.         split -800 filename
  268.  
  269. Each post should have a subject line that contains the part number ("part 0
  270. of n" for the informational post, "part 1 of n" for the first 800 lines of
  271. BinHexed source code, "part 2 of n", etc.).  Remember, these subject lines
  272. are used as indices when your source code gets archived on ftp sites (see
  273. <4.1> below).
  274.  
  275.  
  276. (4.1) FTP sites which carry alt.sources.mac archives
  277.  
  278. ftpbio.bgsu.edu (129.1.252.66) - /pub/alt.sources.mac
  279.  
  280. mac.archive.umich.edu (141.211.120.11) - /mac/development/source (entire
  281. programs) and /mac/development/source/snippets (code fragments).
  282.  
  283.  
  284. (4.2) FTP sites which carry other Macintosh source code
  285.  
  286. sumex-aim.stanford.edu (36.44.0.6) - /info-mac/dev/src
  287.  
  288. ftp.apple.com (130.43.2.3) - /dts/mac - Apple's primary FTP site.  It has
  289. lots of goodies that you won't find anywhere else, sample code and snippets
  290. and tech notes, programming tools and so on.
  291.  
  292. seeding.apple.com (130.43.3.3) - Not much code here, but it does have the
  293. MacTCP docs.
  294.  
  295. nic.switch.ch (130.59.1.40) - /software/mac/src - This is a fountain of
  296. source of all kinds, perhaps the most comprehensive source code archive for
  297. the Mac. It has source for lots of unix ported utilities as well as lots of
  298. "normal" mac source code.
  299.  
  300. ftp.acns.nwu.edu (129.105.16.52) - /pub - Source code for Disinfectant 2.4
  301. (except the anti-virus code) and NewsWatcher.
  302.  
  303. ftp.qualcomm.com (192.35.156.5) - /mac/eudora - Source code for Eudora.
  304.  
  305. ftp.ncsa.uiuc.edu (141.142.20.50) - /Mac - lots of NCSA source code
  306. (Telnet, Mosaic etc) and classes for Think Class Library.
  307.  
  308. redback.cs.uwa.edu.au (130.95.80.61) - /others/PeterLewis - stuff written
  309. by Peter Lewis.
  310.  
  311. ics.uci.edu (128.195.1.1) - /mac/think-c - Home of the think-c mailing list,
  312. has lots of code & classes, etc., for THINK C.
  313.  
  314. ftp.cc.umanitoba.ca (130.179.16.24) - /Mac-Develop/Source - Home of the
  315. develop mailing list, also has lots of misc stuff not found elsewhere.
  316.  
  317.  
  318. (5.1) Copyrights of posts
  319.  
  320. Source code that is posted on alt.sources.mac is copyrighted by the author
  321. unless otherwise stated.  Permission must be granted by the author of the
  322. code before being submitted by a second party.  Source code that is
  323. distributed via this newsgroup can be archived and distributed in any form
  324. as long as the source is in its original posted form.
  325.  
  326.  
  327. (5.2) FAQ credits
  328.  
  329. This FAQ compilation is maintained by Mark Pilgrim (f8dy@netaxs.com).  It
  330. draws information and phrasing from many sources, including:
  331.   - the original welcome message for alt.sources.mac, by Dave Nebinger
  332.   - the original welcome message for alt.sources, by Jonathan Kamens
  333.   - the original RFD for alt.sources.mac, by Dave Nebinger
  334.   - the beta FAQ compilation for alt.sources.mac, by Peter N. Lewis
  335.  
  336.  
  337. (5.3) ObSource
  338.  
  339. Since alt.sources.mac is exclusively for posting Macintosh source code, here
  340. is some C code to convert a char to its rot-13 equivalent:
  341.  
  342. unsigned char Rot13(unsigned char theChar)
  343. {
  344.   return (((theChar|0x20)<'a') || ((theChar|0x20)>'z')) ? theChar :
  345.          ((theChar|0x20)<='m') ? theChar+13 : theChar-13;
  346. }
  347.  
  348.  
  349.